//package com.example.seckilldemo.config.mq;
//
//import org.springframework.amqp.core.Binding;
//import org.springframework.amqp.core.BindingBuilder;
//import org.springframework.amqp.core.FanoutExchange;
//import org.springframework.amqp.core.Queue;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * @Author Wangbaba
// * @Date 2024/3/20 22:48
// * @Version 1.0
// * mq配置类:fanout模式
// */
//@Configuration
//public class RabbitMQFanoutConfig {
//
//    private static final String QUEUE01="queue_fanout01";
//    private static final String QUEUE02="queue_fanout02";
//    private static final String EXCHANGE="fanoutExchange";
//
//    @Bean
//    public Queue queue(){
//       return new Queue("queue", true);
//    }
//
//    @Bean
//    public Queue queueFanout01(){
//        return new Queue(QUEUE01);
//    }
//    @Bean
//    public Queue queueFanout02(){
//        return new Queue(QUEUE02);
//    }
//    @Bean
//    public FanoutExchange fanoutExchange(){
//        return new FanoutExchange(EXCHANGE);
//    }
//    @Bean
//    public Binding bindingFanout01(){
//        return BindingBuilder.bind(queueFanout01()).to(fanoutExchange());
//    }
//    @Bean
//    public Binding bindingFanout02(){
//        return BindingBuilder.bind(queueFanout02()).to(fanoutExchange());
//    }
//}
